001    /***********************************************************************************************
002     *              Tekijä:                 Jukka Salminen
003     *              Opiskelijanumero:       i79947
004     *              Email:                  jukka.salminen@uwasa.fi
005     *              Tekoaika:               23.9.2002
006     *              Kurssi/vuosi:           Ohjelmoinnin jatkokurssi/kevät 2002
007     *              Työn tunnus:            Harjoitustyö: Taulukkoeditori web-sivulle
008     ***********************************************************************************************
009     * JSFrame-luokka
010     *====================
011     * Sovelluksen testiversion Frame yliluokka
012     * Ei varsinaisesti tee mitään.
013     */
014    
015    package classes;
016    public abstract class JSFrame extends javax.swing.JFrame
017    {
018            /** Creates new form JSFrame */
019            public JSFrame()
020            {
021                    initComponents();
022            }
023            public JSFrame(String titleText)
024            {
025                    super(titleText);
026                    initComponents();
027            }
028            
029            /** This method is called from within the constructor to
030             * initialize the form.
031             * WARNING: Do NOT modify this code. The content of this method is
032             * always regenerated by the Form Editor.
033             */
034            private void initComponents()//GEN-BEGIN:initComponents
035            {
036                    
037                    addWindowListener(new java.awt.event.WindowAdapter()
038                    {
039                            public void windowClosing(java.awt.event.WindowEvent evt)
040                            {
041                                    exitForm(evt);
042                            }
043                    });
044                    
045                    pack();
046            }//GEN-END:initComponents
047            
048            /** Exit the Application */
049        private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
050                    System.exit(0);
051        }//GEN-LAST:event_exitForm
052            
053            void init()
054            {
055                    this.setTitle("JSFrame");
056            }
057            
058            // Variables declaration - do not modify//GEN-BEGIN:variables
059            // End of variables declaration//GEN-END:variables
060            
061    }